package com.suliu.practice.decorator;

public class Decorator implements Component {
	private Component component;//持有被装饰角色的引用
	public Decorator(Component component){
		this.component=component;
	}
	@Override
	public void doSomething() {
		component.doSomething();
	}

}
